object RelCartaComissao: TRelCartaComissao
  Left = 238
  Top = 5
  Width = 1006
  Height = 660
  Caption = 'Carta de Comiss'#227'o'
  Color = clBtnFace
  Font.Charset = DEFAULT_CHARSET
  Font.Color = clWindowText
  Font.Height = -11
  Font.Name = 'MS Sans Serif'
  Font.Style = []
  OldCreateOrder = False
  PixelsPerInch = 96
  TextHeight = 13
  object rlRelatorio: TRLReport
    Left = 0
    Top = -1
    Width = 794
    Height = 1123
    DataSource = dsConsulta
    Font.Charset = DEFAULT_CHARSET
    Font.Color = clBlack
    Font.Height = -9
    Font.Name = 'Arial'
    Font.Style = []
    Margins.LeftMargin = 6.000000000000000000
    Margins.TopMargin = 8.000000000000000000
    Margins.RightMargin = 6.000000000000000000
    PrintEmpty = False
    Title = 'Carta de comiss'#227'o'
    ExpressionParser = RLExpressionParser1
    object RLGroup1: TRLGroup
      Left = 23
      Top = 30
      Width = 748
      Height = 1067
      DataFields = 'GRUPO_CODIGO'
      object RLSubDetail2: TRLSubDetail
        Left = 0
        Top = 169
        Width = 748
        Height = 62
        DataSource = dsPostos
        object RLBand2: TRLBand
          Left = 0
          Top = 0
          Width = 748
          Height = 16
          Borders.Sides = sdCustom
          Borders.DrawLeft = False
          Borders.DrawTop = False
          Borders.DrawRight = False
          Borders.DrawBottom = True
          object RLDraw22: TRLDraw
            Left = 40
            Top = 0
            Width = 2
            Height = 15
            Align = faBottomOnly
            Angle = 90.000000000000000000
            DrawKind = dkLine
            Pen.Width = 2
          end
          object RLDraw38: TRLDraw
            Left = 520
            Top = 0
            Width = 2
            Height = 15
            Align = faBottomOnly
            Angle = 90.000000000000000000
            DrawKind = dkLine
            Pen.Width = 2
          end
          object RLDraw39: TRLDraw
            Left = 604
            Top = 0
            Width = 1
            Height = 15
            Align = faBottomOnly
            Angle = 90.000000000000000000
            DrawKind = dkLine
          end
          object RLDraw40: TRLDraw
            Left = 636
            Top = 0
            Width = 1
            Height = 15
            Align = faBottomOnly
            Angle = 90.000000000000000000
            DrawKind = dkLine
          end
          object RLDraw41: TRLDraw
            Left = 684
            Top = 0
            Width = 2
            Height = 15
            Align = faBottomOnly
            Angle = 90.000000000000000000
            DrawKind = dkLine
            Pen.Width = 2
          end
          object RLDraw42: TRLDraw
            Left = 746
            Top = 0
            Width = 2
            Height = 15
            Align = faRightBottom
            Angle = 90.000000000000000000
            DrawKind = dkLine
            Pen.Width = 2
          end
          object RLDraw43: TRLDraw
            Left = 0
            Top = 0
            Width = 2
            Height = 15
            Align = faLeftBottom
            Angle = 90.000000000000000000
            DrawKind = dkLine
            Pen.Width = 2
          end
          object RLDBText8: TRLDBText
            Left = 2
            Top = 1
            Width = 36
            Height = 13
            AutoSize = False
            DataField = 'FRANQUIA_CODIGO'
            DataSource = dsPostos
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            ParentFont = False
          end
          object RLDBText14: TRLDBText
            Left = 161
            Top = 2
            Width = 37
            Height = 12
            Alignment = taRightJustify
            AutoSize = False
            DataFormula = 'OI*GRUPO_OI/100'
            DataSource = dsPostos
            DisplayMask = '###,###,##0.00'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            ParentFont = False
          end
          object RLDBText20: TRLDBText
            Left = 241
            Top = 2
            Width = 38
            Height = 12
            Alignment = taRightJustify
            AutoSize = False
            DataFormula = 'TIM*GRUPO_TIM/100'
            DataSource = dsPostos
            DisplayMask = '###,###,##0.00'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            ParentFont = False
          end
          object RLDBText25: TRLDBText
            Left = 688
            Top = 1
            Width = 57
            Height = 13
            Alignment = taRightJustify
            AutoSize = False
            DataFormula = 
              '(CLARO*GRUPO_CREDIGI/100)+(OI*GRUPO_OI/100)+(TIM*GRUPO_TIM/100)+' +
              '(EMBLDR*GRUPO_EMBRATELLDR/100)+(EMBLIVRE*GRUPO_EMBRATELLIVRE/100' +
              ')+VALGUIAS+VALEGAS'
            DataSource = dsPostos
            DisplayMask = '###,###,##0.00'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            ParentFont = False
          end
          object RLDBText26: TRLDBText
            Left = 606
            Top = 1
            Width = 29
            Height = 13
            Alignment = taRightJustify
            AutoSize = False
            DataField = 'MEDIA'
            DataSource = dsPostos
            DisplayMask = '###,###,##0.00'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            ParentFont = False
          end
          object RLDBText27: TRLDBText
            Left = 568
            Top = 1
            Width = 35
            Height = 13
            Alignment = taRightJustify
            AutoSize = False
            DataField = 'GUIAS'
            DataSource = dsPostos
            DisplayMask = '###,##0'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            ParentFont = False
          end
          object RLDBText28: TRLDBText
            Left = 638
            Top = 1
            Width = 44
            Height = 13
            Alignment = taRightJustify
            AutoSize = False
            DataField = 'VALGUIAS'
            DataSource = dsPostos
            DisplayMask = '###,###,##0.00'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            ParentFont = False
          end
          object RLDBText13: TRLDBText
            Left = 80
            Top = 1
            Width = 39
            Height = 12
            Alignment = taRightJustify
            AutoSize = False
            DataFormula = 'CLARO*GRUPO_CREDIGI/100'
            DataSource = dsPostos
            DisplayMask = '###,###,##0.00'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            ParentFont = False
          end
          object RLDBText11: TRLDBText
            Left = 321
            Top = 2
            Width = 38
            Height = 12
            Alignment = taRightJustify
            AutoSize = False
            DataFormula = 'EMBLDR*GRUPO_EMBRATELLDR/100'
            DataSource = dsPostos
            DisplayMask = '###,###,##0.00'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            ParentFont = False
          end
          object RLDBText12: TRLDBText
            Left = 401
            Top = 2
            Width = 38
            Height = 12
            Alignment = taRightJustify
            AutoSize = False
            DataFormula = 'EMBLIVRE*GRUPO_EMBRATELLIVRE/100'
            DataSource = dsPostos
            DisplayMask = '###,###,##0.00'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            ParentFont = False
          end
          object RLDBText15: TRLDBText
            Left = 481
            Top = 2
            Width = 38
            Height = 12
            Alignment = taRightJustify
            AutoSize = False
            DataFormula = 
              '(CLARO*GRUPO_CREDIGI/100)+(OI*GRUPO_OI/100)+(TIM*GRUPO_TIM/100)+' +
              '(EMBLDR*GRUPO_EMBRATELLDR/100)+(EMBLIVRE*GRUPO_EMBRATELLIVRE/100' +
              ')'
            DataSource = dsPostos
            DisplayMask = '###,###,##0.00'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            ParentFont = False
          end
          object RLDraw5: TRLDraw
            Left = 79
            Top = 0
            Width = 1
            Height = 15
            Align = faBottomOnly
            Angle = 90.000000000000000000
            DrawKind = dkLine
          end
          object RLDraw7: TRLDraw
            Left = 120
            Top = 0
            Width = 2
            Height = 15
            Align = faBottomOnly
            Angle = 90.000000000000000000
            DrawKind = dkLine
            Pen.Width = 2
          end
          object RLDraw9: TRLDraw
            Left = 160
            Top = 0
            Width = 1
            Height = 15
            Align = faBottomOnly
            Angle = 90.000000000000000000
            DrawKind = dkLine
          end
          object RLDraw27: TRLDraw
            Left = 199
            Top = 0
            Width = 2
            Height = 15
            Align = faBottomOnly
            Angle = 90.000000000000000000
            DrawKind = dkLine
            Pen.Width = 2
          end
          object RLDraw31: TRLDraw
            Left = 240
            Top = 0
            Width = 1
            Height = 15
            Align = faBottomOnly
            Angle = 90.000000000000000000
            DrawKind = dkLine
          end
          object RLDraw32: TRLDraw
            Left = 280
            Top = 0
            Width = 2
            Height = 15
            Align = faBottomOnly
            Angle = 90.000000000000000000
            DrawKind = dkLine
            Pen.Width = 2
          end
          object RLDraw33: TRLDraw
            Left = 320
            Top = 0
            Width = 1
            Height = 15
            Align = faBottomOnly
            Angle = 90.000000000000000000
            DrawKind = dkLine
          end
          object RLDraw34: TRLDraw
            Left = 360
            Top = 0
            Width = 2
            Height = 15
            Align = faBottomOnly
            Angle = 90.000000000000000000
            DrawKind = dkLine
            Pen.Width = 2
          end
          object RLDraw35: TRLDraw
            Left = 400
            Top = 0
            Width = 1
            Height = 15
            Align = faBottomOnly
            Angle = 90.000000000000000000
            DrawKind = dkLine
          end
          object RLDraw36: TRLDraw
            Left = 440
            Top = 0
            Width = 2
            Height = 15
            Align = faBottomOnly
            Angle = 90.000000000000000000
            DrawKind = dkLine
            Pen.Width = 2
          end
          object RLDraw37: TRLDraw
            Left = 479
            Top = 0
            Width = 1
            Height = 15
            Align = faBottomOnly
            Angle = 90.000000000000000000
            DrawKind = dkLine
          end
          object RLDBText16: TRLDBText
            Left = 42
            Top = 1
            Width = 35
            Height = 12
            Alignment = taRightJustify
            AutoSize = False
            DataField = 'CLARO'
            DataSource = dsPostos
            DisplayMask = '###,###,##0.00'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            ParentFont = False
          end
          object RLDBText17: TRLDBText
            Left = 122
            Top = 1
            Width = 37
            Height = 12
            Alignment = taRightJustify
            AutoSize = False
            DataField = 'OI'
            DataSource = dsPostos
            DisplayMask = '###,###,##0.00'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            ParentFont = False
          end
          object RLDBText18: TRLDBText
            Left = 282
            Top = 2
            Width = 37
            Height = 12
            Alignment = taRightJustify
            AutoSize = False
            DataField = 'EMBLDR'
            DataSource = dsPostos
            DisplayMask = '###,###,##0.00'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            ParentFont = False
          end
          object RLDBText19: TRLDBText
            Left = 201
            Top = 2
            Width = 38
            Height = 12
            Alignment = taRightJustify
            AutoSize = False
            DataField = 'TIM'
            DataSource = dsPostos
            DisplayMask = '###,###,##0.00'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            ParentFont = False
          end
          object RLDBText21: TRLDBText
            Left = 442
            Top = 2
            Width = 36
            Height = 12
            Alignment = taRightJustify
            AutoSize = False
            DataFormula = 'CLARO+OI+TIM+EMBLDR+EMBLIVRE'
            DataSource = dsPostos
            DisplayMask = '###,###,##0.00'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            ParentFont = False
          end
          object RLDBText22: TRLDBText
            Left = 362
            Top = 2
            Width = 37
            Height = 12
            Alignment = taRightJustify
            AutoSize = False
            DataField = 'EMBLIVRE'
            DataSource = dsPostos
            DisplayMask = '###,###,##0.00'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            ParentFont = False
          end
          object RLDraw54: TRLDraw
            Left = 565
            Top = 0
            Width = 2
            Height = 15
            Align = faBottomOnly
            Angle = 90.000000000000000000
            DrawKind = dkLine
            Pen.Width = 2
          end
          object RLDBText29: TRLDBText
            Left = 522
            Top = 2
            Width = 42
            Height = 12
            Alignment = taRightJustify
            AutoSize = False
            DataField = 'VALEGAS'
            DataSource = dsPostos
            DisplayMask = '###,###,##0.00'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            ParentFont = False
          end
        end
        object RLBand3: TRLBand
          Left = 0
          Top = 16
          Width = 748
          Height = 46
          BandType = btColumnFooter
          Borders.Sides = sdCustom
          Borders.DrawLeft = False
          Borders.DrawTop = False
          Borders.DrawRight = False
          Borders.DrawBottom = False
          BeforePrint = RLBand3BeforePrint
          object RLDraw45: TRLDraw
            Left = 40
            Top = 0
            Width = 2
            Height = 15
            Align = faTopOnly
            Angle = 90.000000000000000000
            DrawKind = dkLine
            Pen.Width = 2
          end
          object RLDraw61: TRLDraw
            Left = 520
            Top = 0
            Width = 2
            Height = 45
            Align = faTopOnly
            Angle = 90.000000000000000000
            DrawKind = dkLine
            Pen.Width = 2
          end
          object RLDraw62: TRLDraw
            Left = 604
            Top = 0
            Width = 1
            Height = 15
            Align = faTopOnly
            Angle = 90.000000000000000000
            DrawKind = dkLine
          end
          object RLDraw63: TRLDraw
            Left = 636
            Top = 0
            Width = 1
            Height = 15
            Align = faTopOnly
            Angle = 90.000000000000000000
            DrawKind = dkLine
          end
          object RLDraw64: TRLDraw
            Left = 684
            Top = 0
            Width = 2
            Height = 45
            Align = faTopOnly
            Angle = 90.000000000000000000
            DrawKind = dkLine
            Pen.Width = 2
          end
          object RLLabel21: TRLLabel
            Left = 3
            Top = 2
            Width = 23
            Height = 10
            Caption = 'Totais'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            ParentFont = False
          end
          object RLDBResult15: TRLDBResult
            Left = 568
            Top = 2
            Width = 35
            Height = 12
            Alignment = taRightJustify
            AutoSize = False
            DataField = 'GUIAS'
            DataSource = dsPostos
            DisplayMask = '###,##0'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            Info = riSum
            ParentFont = False
          end
          object RLDBResult16: TRLDBResult
            Left = 606
            Top = 2
            Width = 29
            Height = 12
            Alignment = taRightJustify
            AutoSize = False
            DataField = 'MEDIA'
            DataSource = dsPostos
            DisplayMask = '###,###,##0.00'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            Info = riAverage
            ParentFont = False
          end
          object RLDBResult17: TRLDBResult
            Left = 638
            Top = 2
            Width = 44
            Height = 12
            Alignment = taRightJustify
            AutoSize = False
            DataField = 'VALGUIAS'
            DataSource = dsPostos
            DisplayMask = '###,###,##0.00'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            Info = riSum
            ParentFont = False
          end
          object RLDBResult18: TRLDBResult
            Left = 688
            Top = 2
            Width = 57
            Height = 12
            Alignment = taRightJustify
            AutoSize = False
            DataFormula = 
              '(CLARO*GRUPO_CREDIGI/100)+(OI*GRUPO_OI/100)+(TIM*GRUPO_TIM/100)+' +
              '(EMBLDR*GRUPO_EMBRATELLDR/100)+(EMBLIVRE*GRUPO_EMBRATELLIVRE/100' +
              ')+VALGUIAS+VALEGAS'
            DataSource = dsPostos
            DisplayMask = '###,###,##0.00'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            Info = riSum
            ParentFont = False
          end
          object RLDBResult19: TRLDBResult
            Left = 241
            Top = 2
            Width = 38
            Height = 12
            Alignment = taRightJustify
            AutoSize = False
            DataFormula = 'TIM*GRUPO_TIM/100'
            DataSource = dsPostos
            DisplayMask = '###,###,##0.00'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            Info = riSum
            ParentFont = False
          end
          object RLDBResult20: TRLDBResult
            Left = 161
            Top = 2
            Width = 37
            Height = 12
            Alignment = taRightJustify
            AutoSize = False
            DataFormula = 'OI*GRUPO_OI/100'
            DataSource = dsPostos
            DisplayMask = '###,###,##0.00'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            Info = riSum
            ParentFont = False
          end
          object RLDBResult21: TRLDBResult
            Left = 79
            Top = 2
            Width = 40
            Height = 12
            Alignment = taRightJustify
            AutoSize = False
            DataFormula = 'CLARO*GRUPO_CREDIGI/100'
            DataSource = dsPostos
            DisplayMask = '###,###,##0.00'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            Info = riSum
            ParentFont = False
          end
          object RLDraw68: TRLDraw
            Left = 0
            Top = 15
            Width = 748
            Height = 1
            DrawKind = dkLine
          end
          object RLDBResult22: TRLDBResult
            Left = 688
            Top = 17
            Width = 57
            Height = 12
            Alignment = taRightJustify
            AutoSize = False
            DataFormula = 
              '((CLARO*GRUPO_CREDIGI/100)+(OI*GRUPO_OI/100)+(TIM*GRUPO_TIM/100)' +
              '+(EMBLDR*GRUPO_EMBRATELLDR/100)+(EMBLIVRE*GRUPO_EMBRATELLIVRE/10' +
              '0)+VALGUIAS+VALEGAS)*COMISSAO_ISS/100'
            DataSource = dsPostos
            DisplayMask = '###,###,##0.00'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            Info = riSum
            ParentFont = False
          end
          object resSubtotal: TRLDBResult
            Left = 688
            Top = 32
            Width = 57
            Height = 12
            Alignment = taRightJustify
            AutoSize = False
            DataFormula = 
              '((CLARO*GRUPO_CREDIGI/100)+(OI*GRUPO_OI/100)+(TIM*GRUPO_TIM/100)' +
              '+(EMBLDR*GRUPO_EMBRATELLDR/100)+(EMBLIVRE*GRUPO_EMBRATELLIVRE/10' +
              '0)+VALGUIAS+VALEGAS)-(((CLARO*GRUPO_CREDIGI/100)+(OI*GRUPO_OI/10' +
              '0)+(TIM*GRUPO_TIM/100)+(EMBLDR*GRUPO_EMBRATELLDR/100)+(EMBLIVRE*' +
              'GRUPO_EMBRATELLIVRE/100)+VALGUIAS+VALEGAS)*COMISSAO_ISS/100)'
            DataSource = dsPostos
            DisplayMask = '###,###,##0.00'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            Info = riSum
            ParentFont = False
          end
          object RLLabel24: TRLLabel
            Left = 626
            Top = 32
            Width = 56
            Height = 10
            Alignment = taRightJustify
            Caption = '(=) SUBTOTAL'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            ParentFont = False
          end
          object RLDraw69: TRLDraw
            Left = 522
            Top = 30
            Width = 226
            Height = 1
            Align = faRightOnly
            DrawKind = dkLine
          end
          object RLDraw70: TRLDraw
            Left = 522
            Top = 44
            Width = 226
            Height = 1
            Align = faRightOnly
            DrawKind = dkLine
          end
          object RLDBText36: TRLDBText
            Left = 528
            Top = 17
            Width = 154
            Height = 13
            Alignment = taRightJustify
            AutoSize = False
            DataField = 'COMISSAO_ISS'
            DataSource = dsPostos
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            ParentFont = False
            Text = '(-) desconto: '
          end
          object RLDBResult1: TRLDBResult
            Left = 321
            Top = 2
            Width = 38
            Height = 12
            Alignment = taRightJustify
            AutoSize = False
            DataFormula = 'EMBLDR*GRUPO_EMBRATELLDR/100'
            DataSource = dsPostos
            DisplayMask = '###,###,##0.00'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            Info = riSum
            ParentFont = False
          end
          object RLDBResult2: TRLDBResult
            Left = 401
            Top = 2
            Width = 38
            Height = 12
            Alignment = taRightJustify
            AutoSize = False
            DataFormula = 'EMBLIVRE*GRUPO_EMBRATELLIVRE/100'
            DataSource = dsPostos
            DisplayMask = '###,###,##0.00'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            Info = riSum
            ParentFont = False
          end
          object RLDBResult3: TRLDBResult
            Left = 480
            Top = 2
            Width = 39
            Height = 12
            Alignment = taRightJustify
            AutoSize = False
            DataFormula = 
              '(CLARO*GRUPO_CREDIGI/100)+(OI*GRUPO_OI/100)+(TIM*GRUPO_TIM/100)+' +
              '(EMBLDR*GRUPO_EMBRATELLDR/100)+(EMBLIVRE*GRUPO_EMBRATELLIVRE/100' +
              ')'
            DataSource = dsPostos
            DisplayMask = '###,###,##0.00'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            Info = riSum
            ParentFont = False
          end
          object RLDraw20: TRLDraw
            Left = 746
            Top = 1
            Width = 2
            Height = 45
            Align = faRightBottom
            Angle = 90.000000000000000000
            DrawKind = dkLine
            Pen.Width = 2
          end
          object RLDraw23: TRLDraw
            Left = 0
            Top = 0
            Width = 2
            Height = 15
            Align = faLeftTop
            Angle = 90.000000000000000000
            DrawKind = dkLine
            Pen.Width = 2
          end
          object RLDraw17: TRLDraw
            Left = 479
            Top = 0
            Width = 1
            Height = 15
            Align = faTopOnly
            Angle = 90.000000000000000000
            DrawKind = dkLine
          end
          object RLDraw18: TRLDraw
            Left = 440
            Top = 0
            Width = 2
            Height = 15
            Align = faTopOnly
            Angle = 90.000000000000000000
            DrawKind = dkLine
            Pen.Width = 2
          end
          object RLDraw19: TRLDraw
            Left = 400
            Top = 0
            Width = 1
            Height = 15
            Align = faTopOnly
            Angle = 90.000000000000000000
            DrawKind = dkLine
          end
          object RLDraw44: TRLDraw
            Left = 360
            Top = 0
            Width = 2
            Height = 15
            Align = faTopOnly
            Angle = 90.000000000000000000
            DrawKind = dkLine
            Pen.Width = 2
          end
          object RLDraw46: TRLDraw
            Left = 320
            Top = 0
            Width = 1
            Height = 15
            Align = faTopOnly
            Angle = 90.000000000000000000
            DrawKind = dkLine
          end
          object RLDraw47: TRLDraw
            Left = 280
            Top = 0
            Width = 2
            Height = 15
            Align = faTopOnly
            Angle = 90.000000000000000000
            DrawKind = dkLine
            Pen.Width = 2
          end
          object RLDraw48: TRLDraw
            Left = 240
            Top = 0
            Width = 1
            Height = 15
            Align = faTopOnly
            Angle = 90.000000000000000000
            DrawKind = dkLine
          end
          object RLDraw49: TRLDraw
            Left = 199
            Top = 0
            Width = 2
            Height = 15
            Align = faTopOnly
            Angle = 90.000000000000000000
            DrawKind = dkLine
            Pen.Width = 2
          end
          object RLDraw50: TRLDraw
            Left = 160
            Top = 0
            Width = 1
            Height = 15
            Align = faTopOnly
            Angle = 90.000000000000000000
            DrawKind = dkLine
          end
          object RLDraw51: TRLDraw
            Left = 120
            Top = 0
            Width = 2
            Height = 15
            Align = faTopOnly
            Angle = 90.000000000000000000
            DrawKind = dkLine
            Pen.Width = 2
          end
          object RLDraw52: TRLDraw
            Left = 78
            Top = 0
            Width = 1
            Height = 15
            Align = faTopOnly
            Angle = 90.000000000000000000
            DrawKind = dkLine
          end
          object RLDBResult4: TRLDBResult
            Left = 42
            Top = 2
            Width = 35
            Height = 12
            Alignment = taRightJustify
            AutoSize = False
            DataField = 'CLARO'
            DataSource = dsPostos
            DisplayMask = '###,###,##0.00'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            Info = riSum
            ParentFont = False
          end
          object RLDBResult5: TRLDBResult
            Left = 121
            Top = 2
            Width = 38
            Height = 12
            Alignment = taRightJustify
            AutoSize = False
            DataField = 'OI'
            DataSource = dsPostos
            DisplayMask = '###,###,##0.00'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            Info = riSum
            ParentFont = False
          end
          object RLDBResult6: TRLDBResult
            Left = 200
            Top = 2
            Width = 39
            Height = 12
            Alignment = taRightJustify
            AutoSize = False
            DataField = 'TIM'
            DataSource = dsPostos
            DisplayMask = '###,###,##0.00'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            Info = riSum
            ParentFont = False
          end
          object RLDBResult7: TRLDBResult
            Left = 281
            Top = 2
            Width = 38
            Height = 12
            Alignment = taRightJustify
            AutoSize = False
            DataField = 'EMBLDR'
            DataSource = dsPostos
            DisplayMask = '###,###,##0.00'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            Info = riSum
            ParentFont = False
          end
          object RLDBResult8: TRLDBResult
            Left = 361
            Top = 2
            Width = 38
            Height = 12
            Alignment = taRightJustify
            AutoSize = False
            DataField = 'EMBLIVRE'
            DataSource = dsPostos
            DisplayMask = '###,###,##0.00'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            Info = riSum
            ParentFont = False
          end
          object RLDBResult9: TRLDBResult
            Left = 442
            Top = 2
            Width = 36
            Height = 12
            Alignment = taRightJustify
            AutoSize = False
            DataFormula = 'CLARO+OI+TIM+EMBLDR+EMBLIVRE'
            DataSource = dsPostos
            DisplayMask = '###,###,##0.00'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            Info = riSum
            ParentFont = False
          end
          object RLDBText32: TRLDBText
            Left = 3
            Top = 18
            Width = 152
            Height = 10
            DataField = 'CARTA_CREDITO'
            DataSource = dsConsulta
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            ParentFont = False
            Text = 'A ser creditado at'#233' o dia '
          end
          object RLDBText34: TRLDBText
            Left = 3
            Top = 31
            Width = 227
            Height = 10
            DataFormula = 'COMISSAO_CONTA+'#39' Titular: '#39'+COMISSAO_TITULAR'
            DataSource = dsConsulta
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            ParentFont = False
            Text = 'Conta: '
          end
          object RLDBText23: TRLDBText
            Left = 166
            Top = 18
            Width = 188
            Height = 10
            DataFormula = 'BANCO+'#39' Ag'#234'ncia:'#39'+COMISSAO_AGENCIA'
            DataSource = dsConsulta
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            ParentFont = False
            Text = 'Banco: '
          end
          object RLDBText24: TRLDBText
            Left = 299
            Top = 31
            Width = 87
            Height = 10
            DataFormula = 'GRUPO_TIPOCONTA'
            DataSource = dsConsulta
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            ParentFont = False
          end
          object RLDraw55: TRLDraw
            Left = 565
            Top = 0
            Width = 2
            Height = 15
            Align = faTopOnly
            Angle = 90.000000000000000000
            DrawKind = dkLine
            Pen.Width = 2
          end
          object RLDBResult10: TRLDBResult
            Left = 522
            Top = 2
            Width = 42
            Height = 12
            Alignment = taRightJustify
            AutoSize = False
            DataField = 'VALEGAS'
            DataSource = dsPostos
            DisplayMask = '###,###,##0.00'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            Info = riSum
            ParentFont = False
          end
        end
      end
      object RLSubDetail1: TRLSubDetail
        Left = 0
        Top = 231
        Width = 748
        Height = 18
        DataSource = dsAjustes
        object RLBand4: TRLBand
          Left = 0
          Top = 0
          Width = 748
          Height = 17
          object RLDraw74: TRLDraw
            Left = 520
            Top = 15
            Width = 228
            Height = 1
            Align = faRightOnly
            DrawKind = dkLine
          end
          object RLDBText30: TRLDBText
            Left = 528
            Top = 2
            Width = 155
            Height = 13
            Alignment = taRightJustify
            AutoSize = False
            DataField = 'AJUSTEGRUPO_DESCRICAO'
            DataSource = dsAjustes
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            ParentFont = False
            Text = '(+/-) '
          end
          object RLDBText31: TRLDBText
            Left = 688
            Top = 1
            Width = 57
            Height = 13
            Alignment = taRightJustify
            AutoSize = False
            DataField = 'AJUSTECOMISSAO_VALOR'
            DataSource = dsAjustes
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clBlack
            Font.Height = -8
            Font.Name = 'Arial'
            Font.Style = []
            ParentFont = False
          end
          object RLDraw72: TRLDraw
            Left = 684
            Top = 0
            Width = 2
            Height = 15
            Align = faTopOnly
            Angle = 90.000000000000000000
            DrawKind = dkLine
            Pen.Width = 2
          end
          object RLDraw10: TRLDraw
            Left = 746
            Top = 0
            Width = 2
            Height = 15
            Align = faTopOnly
            Angle = 90.000000000000000000
            DrawKind = dkLine
            Pen.Width = 2
          end
          object RLDraw56: TRLDraw
            Left = 520
            Top = 0
            Width = 2
            Height = 16
            Align = faTopOnly
            Angle = 90.000000000000000000
            DrawKind = dkLine
            Pen.Width = 2
          end
        end
      end
      object rlband: TRLBand
        Left = 0
        Top = 249
        Width = 748
        Height = 808
        AutoExpand = False
        BandType = btColumnFooter
        Borders.Sides = sdCustom
        Borders.DrawLeft = False
        Borders.DrawTop = False
        Borders.DrawRight = False
        Borders.DrawBottom = False
        Borders.Style = bsVertical
        object RLDraw71: TRLDraw
          Left = 746
          Top = 0
          Width = 2
          Height = 20
          Align = faTopOnly
          Angle = 90.000000000000000000
          DrawKind = dkLine
          Pen.Width = 2
        end
        object rlTexto: TRLRichText
          Left = 1
          Top = 80
          Width = 745
          Height = 18
          IntegralHeight = True
          WordWrap = False
        end
        object RLDraw11: TRLDraw
          Left = 520
          Top = 19
          Width = 228
          Height = 2
          Align = faRightOnly
          DrawKind = dkLine
          Pen.Width = 2
        end
        object RLDraw12: TRLDraw
          Left = 520
          Top = 0
          Width = 2
          Height = 20
          Align = faTopOnly
          Angle = 90.000000000000000000
          DrawKind = dkLine
          Pen.Width = 2
        end
        object rlTotLiq: TRLLabel
          Left = 528
          Top = 2
          Width = 216
          Height = 14
          Alignment = taRightJustify
          AutoSize = False
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -12
          Font.Name = 'Arial'
          Font.Style = [fsBold]
          ParentFont = False
        end
        object rlObs: TRLRichText
          Left = 1
          Top = 24
          Width = 745
          Height = 18
          IntegralHeight = True
          WordWrap = False
        end
      end
      object RLBand1: TRLBand
        Left = 0
        Top = 0
        Width = 748
        Height = 169
        AutoExpand = False
        Borders.Sides = sdCustom
        Borders.DrawLeft = False
        Borders.DrawTop = False
        Borders.DrawRight = False
        Borders.DrawBottom = True
        BeforePrint = RLBand1BeforePrint
        object RLLabel10: TRLLabel
          Left = 638
          Top = 156
          Width = 45
          Height = 12
          Align = faBottomOnly
          Caption = 'Comiss'#227'o'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -9
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLDBText1: TRLDBText
          Left = 535
          Top = 2
          Width = 101
          Height = 14
          Alignment = taRightJustify
          DataField = 'Impressao'
          DataSource = dsConsulta
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -11
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
          Text = 'Teresina, '
        end
        object RLDBText2: TRLDBText
          Left = 40
          Top = 24
          Width = 228
          Height = 18
          DataField = 'GRUPO_DESCRICAO'
          DataSource = dsConsulta
          Font.Charset = ANSI_CHARSET
          Font.Color = clBlack
          Font.Height = -13
          Font.Name = 'Arial Black'
          Font.Style = []
          ParentFont = False
          Text = 'COMISS'#195'O '
        end
        object RLDBText3: TRLDBText
          Left = 40
          Top = 62
          Width = 88
          Height = 14
          DataField = 'GRUPO_ATT'
          DataSource = dsConsulta
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -11
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
          Text = 'Att.: '
        end
        object RLDraw81: TRLDraw
          Left = 41
          Top = 152
          Width = 707
          Height = 1
          DrawKind = dkLine
        end
        object rlLinha: TRLLabel
          Left = 4
          Top = 156
          Width = 27
          Height = 12
          Align = faBottomOnly
          Caption = 'Posto'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -9
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLDraw2: TRLDraw
          Left = 40
          Top = 138
          Width = 2
          Height = 30
          Align = faBottomOnly
          Angle = 90.000000000000000000
          DrawKind = dkLine
          Pen.Width = 2
        end
        object RLDraw82: TRLDraw
          Left = 40
          Top = 137
          Width = 646
          Height = 2
          DrawKind = dkLine
          Pen.Width = 2
        end
        object RLDraw14: TRLDraw
          Left = 520
          Top = 138
          Width = 2
          Height = 30
          Align = faBottomOnly
          Angle = 90.000000000000000000
          DrawKind = dkLine
          Pen.Width = 2
        end
        object RLDraw6: TRLDraw
          Left = 604
          Top = 153
          Width = 1
          Height = 15
          Align = faBottomOnly
          Angle = 90.000000000000000000
          DrawKind = dkLine
        end
        object RLMemo1: TRLMemo
          Left = 40
          Top = 98
          Width = 729
          Height = 29
          AutoSize = False
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -11
          Font.Name = 'Arial'
          Font.Style = []
          Lines.Strings = (
            
              'Informamos, com satisfa'#231#227'o, que estamos repassando a remunera'#231#227'o' +
              ' sobre as guias recebidas'
            
              'e os cr'#233'ditos digitais vendidos neste(s) posto(s) de recebimento' +
              ', conforme demonstrativo abaixo:')
          ParentFont = False
        end
        object RLDraw15: TRLDraw
          Left = 684
          Top = 138
          Width = 2
          Height = 30
          Align = faBottomOnly
          Angle = 90.000000000000000000
          DrawKind = dkLine
          Pen.Width = 2
        end
        object RLLabel9: TRLLabel
          Left = 569
          Top = 156
          Width = 21
          Height = 12
          Align = faBottomOnly
          Caption = 'Qtd.'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -9
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLLabel14: TRLLabel
          Left = 687
          Top = 156
          Width = 23
          Height = 12
          Align = faBottomOnly
          Caption = 'Total'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -9
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLDraw16: TRLDraw
          Left = 746
          Top = 153
          Width = 2
          Height = 15
          Align = faRightBottom
          Angle = 90.000000000000000000
          DrawKind = dkLine
          Pen.Width = 2
        end
        object RLDraw1: TRLDraw
          Left = 120
          Top = 138
          Width = 2
          Height = 30
          Align = faBottomOnly
          Angle = 90.000000000000000000
          DrawKind = dkLine
          Pen.Width = 2
        end
        object RLDraw13: TRLDraw
          Left = 200
          Top = 138
          Width = 2
          Height = 30
          Align = faBottomOnly
          Angle = 90.000000000000000000
          DrawKind = dkLine
          Pen.Width = 2
        end
        object RLDraw21: TRLDraw
          Left = 636
          Top = 153
          Width = 1
          Height = 15
          Align = faBottomOnly
          Angle = 90.000000000000000000
          DrawKind = dkLine
        end
        object RLLabel23: TRLLabel
          Left = 607
          Top = 156
          Width = 23
          Height = 12
          Align = faBottomOnly
          Caption = 'M'#233'd.'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -9
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLDBText5: TRLDBText
          Left = 43
          Top = 140
          Width = 64
          Height = 12
          AutoSize = False
          DataField = 'GRUPO_CREDIGI'
          DataSource = dsConsulta
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -9
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
          Text = 'Claro - '
        end
        object RLDBText6: TRLDBText
          Left = 123
          Top = 140
          Width = 55
          Height = 12
          AutoSize = False
          DataField = 'GRUPO_OI'
          DataSource = dsConsulta
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -9
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
          Text = 'Oi - '
        end
        object RLDBText7: TRLDBText
          Left = 204
          Top = 140
          Width = 66
          Height = 12
          AutoSize = False
          DataField = 'GRUPO_TIM'
          DataSource = dsConsulta
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -9
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
          Text = 'Tim - '
        end
        object RLLabel1: TRLLabel
          Left = 570
          Top = 140
          Width = 27
          Height = 12
          Caption = 'Guias'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -9
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLDraw3: TRLDraw
          Left = 280
          Top = 138
          Width = 2
          Height = 30
          Align = faBottomOnly
          Angle = 90.000000000000000000
          DrawKind = dkLine
          Pen.Width = 2
        end
        object RLDBText9: TRLDBText
          Left = 283
          Top = 140
          Width = 78
          Height = 12
          AutoSize = False
          DataField = 'GRUPO_EMBRATELLDR'
          DataSource = dsConsulta
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -9
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
          Text = 'LDR - '
        end
        object RLDBText10: TRLDBText
          Left = 363
          Top = 140
          Width = 76
          Height = 12
          AutoSize = False
          DataField = 'GRUPO_EMBRATELLIVRE'
          DataSource = dsConsulta
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -9
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
          Text = 'Livre - '
        end
        object RLDraw4: TRLDraw
          Left = 360
          Top = 138
          Width = 2
          Height = 30
          Align = faBottomOnly
          Angle = 90.000000000000000000
          DrawKind = dkLine
          Pen.Width = 2
        end
        object RLDraw8: TRLDraw
          Left = 440
          Top = 138
          Width = 2
          Height = 30
          Align = faBottomOnly
          Angle = 90.000000000000000000
          DrawKind = dkLine
          Pen.Width = 2
        end
        object RLLabel3: TRLLabel
          Left = 42
          Top = 155
          Width = 36
          Height = 12
          Alignment = taCenter
          AutoSize = False
          Caption = 'Venda'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -9
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLLabel4: TRLLabel
          Left = 82
          Top = 155
          Width = 26
          Height = 12
          Caption = 'Com.'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -9
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLDraw24: TRLDraw
          Left = 80
          Top = 153
          Width = 1
          Height = 15
          Align = faBottomOnly
          Angle = 90.000000000000000000
          DrawKind = dkLine
        end
        object RLDraw25: TRLDraw
          Left = 160
          Top = 153
          Width = 1
          Height = 15
          Align = faBottomOnly
          Angle = 90.000000000000000000
          DrawKind = dkLine
        end
        object RLLabel5: TRLLabel
          Left = 123
          Top = 155
          Width = 36
          Height = 12
          Alignment = taCenter
          AutoSize = False
          Caption = 'Venda'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -9
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLLabel6: TRLLabel
          Left = 162
          Top = 155
          Width = 38
          Height = 12
          Caption = 'Comiss.'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -9
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLDraw26: TRLDraw
          Left = 240
          Top = 153
          Width = 1
          Height = 15
          Align = faBottomOnly
          Angle = 90.000000000000000000
          DrawKind = dkLine
        end
        object RLLabel7: TRLLabel
          Left = 203
          Top = 155
          Width = 36
          Height = 12
          Alignment = taCenter
          AutoSize = False
          Caption = 'Venda'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -9
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLLabel8: TRLLabel
          Left = 242
          Top = 155
          Width = 38
          Height = 12
          Caption = 'Comiss.'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -9
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLDraw28: TRLDraw
          Left = 400
          Top = 153
          Width = 1
          Height = 15
          Align = faBottomOnly
          Angle = 90.000000000000000000
          DrawKind = dkLine
        end
        object RLLabel11: TRLLabel
          Left = 363
          Top = 155
          Width = 36
          Height = 12
          Alignment = taCenter
          AutoSize = False
          Caption = 'Venda'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -9
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLLabel12: TRLLabel
          Left = 402
          Top = 155
          Width = 38
          Height = 12
          Caption = 'Comiss.'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -9
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLDraw29: TRLDraw
          Left = 480
          Top = 153
          Width = 1
          Height = 15
          Align = faBottomOnly
          Angle = 90.000000000000000000
          DrawKind = dkLine
        end
        object RLLabel13: TRLLabel
          Left = 443
          Top = 155
          Width = 36
          Height = 12
          Alignment = taCenter
          AutoSize = False
          Caption = 'Venda'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -9
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLLabel15: TRLLabel
          Left = 482
          Top = 155
          Width = 38
          Height = 12
          Caption = 'Comiss.'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -9
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLDraw30: TRLDraw
          Left = 320
          Top = 153
          Width = 1
          Height = 15
          Align = faBottomOnly
          Angle = 90.000000000000000000
          DrawKind = dkLine
        end
        object RLLabel16: TRLLabel
          Left = 322
          Top = 155
          Width = 38
          Height = 12
          Caption = 'Comiss.'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -9
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLLabel17: TRLLabel
          Left = 283
          Top = 155
          Width = 36
          Height = 12
          Alignment = taCenter
          AutoSize = False
          Caption = 'Venda'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -9
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLDBText4: TRLDBText
          Left = 40
          Top = 45
          Width = 150
          Height = 14
          DataField = 'COMISSAO_PERIODO'
          DataSource = dsConsulta
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -11
          Font.Name = 'Arial'
          Font.Style = [fsBold]
          ParentFont = False
          Text = 'Ref. a: '
        end
        object RLLabel2: TRLLabel
          Left = 522
          Top = 140
          Width = 41
          Height = 12
          Caption = 'Vale G'#225's'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -9
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLDraw53: TRLDraw
          Left = 565
          Top = 138
          Width = 2
          Height = 30
          Align = faBottomOnly
          Angle = 90.000000000000000000
          DrawKind = dkLine
          Pen.Width = 2
        end
        object RLLabel19: TRLLabel
          Left = 523
          Top = 156
          Width = 33
          Height = 12
          Caption = 'Comis.'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -9
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLLabel20: TRLLabel
          Left = 443
          Top = 140
          Width = 61
          Height = 12
          Caption = 'Total Cr'#233'ditos'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -9
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
      end
    end
  end
  object qryConsulta: TADOQuery
    Connection = FormPrincipal.cnRGT
    CursorType = ctStatic
    AfterOpen = qryConsultaAfterOpen
    BeforeClose = qryConsultaBeforeClose
    OnCalcFields = qryConsultaCalcFields
    CommandTimeout = 90
    Parameters = <
      item
        Name = 'PERIODO'
        DataType = ftString
        NumericScale = 255
        Precision = 255
        Size = 5
        Value = 'MAR06'
      end>
    Prepared = True
    SQL.Strings = (
      'SELECT B.NOME AS BANCO, C.*, A.CARTA_DATAINI, A.CARTA_DATAFIM, '
      'CARTA_GERACAO, CARTA_CREDITO, CARTA_OBS, CARTA_AVISO, CARTA_PAGO'
      
        'FROM CARTA A INNER JOIN COMISSAO C ON (C.COMISSAO_PERIODO=A.COMI' +
        'SSAO_PERIODO)'
      'LEFT JOIN BANCOS B ON (B.CODIGO=C.COMISSAO_BANCO)'
      'WHERE A.COMISSAO_PERIODO=:PERIODO'
      'ORDER BY C.GRUPO_CODIGO')
    Left = 266
    Top = 311
    object qryConsultaBANCO: TStringField
      FieldName = 'BANCO'
      Size = 50
    end
    object qryConsultaGRUPO_CODIGO: TIntegerField
      FieldName = 'GRUPO_CODIGO'
    end
    object qryConsultaCOMISSAO_PERIODO: TStringField
      FieldName = 'COMISSAO_PERIODO'
      EditMask = 'AAA\/99;0; '
      FixedChar = True
      Size = 5
    end
    object qryConsultaGRUPO_CREDIGI: TBCDField
      FieldName = 'GRUPO_CREDIGI'
      DisplayFormat = '##0.00%'
      Precision = 19
    end
    object qryConsultaCALGUIA_CODIGO: TIntegerField
      FieldName = 'CALGUIA_CODIGO'
    end
    object qryConsultaCOMISSAO_JUNTAR: TStringField
      FieldName = 'COMISSAO_JUNTAR'
      FixedChar = True
      Size = 1
    end
    object qryConsultaCOMISSAO_BANCO: TSmallintField
      FieldName = 'COMISSAO_BANCO'
    end
    object qryConsultaCOMISSAO_AGENCIA: TStringField
      FieldName = 'COMISSAO_AGENCIA'
      FixedChar = True
      Size = 8
    end
    object qryConsultaCOMISSAO_CONTA: TStringField
      FieldName = 'COMISSAO_CONTA'
      Size = 15
    end
    object qryConsultaCOMISSAO_TITULAR: TStringField
      FieldName = 'COMISSAO_TITULAR'
      Size = 50
    end
    object qryConsultaCOMISSAO_GARANTIA: TBCDField
      FieldName = 'COMISSAO_GARANTIA'
      Precision = 19
    end
    object qryConsultaCOMISSAO_ISS: TBCDField
      FieldName = 'COMISSAO_ISS'
      EditFormat = ' - ##0.00%'
      Precision = 19
    end
    object qryConsultaCOMISSAO_OBS: TMemoField
      FieldName = 'COMISSAO_OBS'
      BlobType = ftMemo
    end
    object qryConsultaGRUPO_ATT: TStringField
      FieldName = 'GRUPO_ATT'
      Size = 30
    end
    object qryConsultaGRUPO_DESCRICAO: TStringField
      FieldName = 'GRUPO_DESCRICAO'
      Size = 50
    end
    object qryConsultaGRUPO_TIPOCONTA: TStringField
      FieldName = 'GRUPO_TIPOCONTA'
      Size = 15
    end
    object qryConsultaGRUPO_OI: TBCDField
      FieldName = 'GRUPO_OI'
      DisplayFormat = '##0.00%'
      Precision = 19
    end
    object qryConsultaGRUPO_TIM: TBCDField
      FieldName = 'GRUPO_TIM'
      DisplayFormat = '##0.00%'
      Precision = 19
    end
    object qryConsultaCOMISSAO_AJUSTES: TBCDField
      FieldName = 'COMISSAO_AJUSTES'
      Precision = 19
    end
    object qryConsultaCARTA_DATAINI: TDateTimeField
      FieldName = 'CARTA_DATAINI'
    end
    object qryConsultaCARTA_DATAFIM: TDateTimeField
      FieldName = 'CARTA_DATAFIM'
    end
    object qryConsultaCARTA_GERACAO: TDateTimeField
      FieldName = 'CARTA_GERACAO'
    end
    object qryConsultaCARTA_CREDITO: TDateTimeField
      FieldName = 'CARTA_CREDITO'
    end
    object qryConsultaCARTA_OBS: TMemoField
      FieldName = 'CARTA_OBS'
      BlobType = ftMemo
    end
    object qryConsultaCARTA_AVISO: TMemoField
      FieldName = 'CARTA_AVISO'
      BlobType = ftFmtMemo
    end
    object qryConsultaImpressao: TStringField
      FieldKind = fkCalculated
      FieldName = 'Impressao'
      Size = 50
      Calculated = True
    end
    object qryConsultaCOMISSAO_NDEPOSITAR: TStringField
      FieldName = 'COMISSAO_NDEPOSITAR'
      FixedChar = True
      Size = 1
    end
    object qryConsultaGRUPO_EMBRATELLDR: TBCDField
      FieldName = 'GRUPO_EMBRATELLDR'
      DisplayFormat = '##0.00%'
      Precision = 19
    end
    object qryConsultaGRUPO_EMBRATELLIVRE: TBCDField
      FieldName = 'GRUPO_EMBRATELLIVRE'
      DisplayFormat = '##0.00%'
      Precision = 19
    end
  end
  object dsConsulta: TDataSource
    DataSet = qryConsulta
    Left = 266
    Top = 327
  end
  object RLXLSFilter1: TRLXLSFilter
    DisplayName = 'Planilha Excel'
    Left = 1012
    Top = 414
  end
  object RLPDFFilter1: TRLPDFFilter
    DocumentInfo.Creator = 'FortesReport v3.22 \251 Copyright '#169' 1999-2004 Fortes Inform'#225'tica'
    ViewerOptions = []
    FontEncoding = feNoEncoding
    DisplayName = 'Documento PDF'
    Left = 1169
    Top = 399
  end
  object RLExpressionParser1: TRLExpressionParser
    Left = 1153
    Top = 462
  end
  object qryAjustes: TADOQuery
    Connection = FormPrincipal.cnRGT
    CursorType = ctStatic
    CommandTimeout = 90
    DataSource = dsConsulta
    Parameters = <
      item
        Name = 'GRUPO_CODIGO'
        Attributes = [paSigned]
        DataType = ftInteger
        Precision = 10
        Value = 4000
      end
      item
        Name = 'COMISSAO_PERIODO'
        DataType = ftString
        NumericScale = 255
        Precision = 255
        Size = 5
        Value = 'MAR06'
      end>
    Prepared = True
    SQL.Strings = (
      'SELECT * FROM AJUSTECOMISSAO'
      'WHERE (GRUPO_CODIGO=:GRUPO_CODIGO)'
      'AND (COMISSAO_PERIODO=:COMISSAO_PERIODO) ')
    Left = 404
    Top = 326
    object qryAjustesGRUPO_CODIGO: TIntegerField
      FieldName = 'GRUPO_CODIGO'
    end
    object qryAjustesCOMISSAO_PERIODO: TStringField
      FieldName = 'COMISSAO_PERIODO'
      FixedChar = True
      Size = 5
    end
    object qryAjustesAJUSTEGRUPO_DESCRICAO: TStringField
      FieldName = 'AJUSTEGRUPO_DESCRICAO'
      Size = 30
    end
    object qryAjustesAJUSTECOMISSAO_VALOR: TBCDField
      FieldName = 'AJUSTECOMISSAO_VALOR'
      DisplayFormat = '###,###,##0.00'
      Precision = 19
    end
  end
  object dsAjustes: TDataSource
    DataSet = qryAjustes
    Left = 402
    Top = 303
  end
  object qryPostos: TADOQuery
    Connection = FormPrincipal.cnRGT
    CursorType = ctStatic
    CommandTimeout = 90
    DataSource = dsConsulta
    Parameters = <
      item
        Name = 'GRUPO_CODIGO'
        Attributes = [paSigned]
        DataType = ftInteger
        Precision = 10
        Size = 4
        Value = 4000
      end
      item
        Name = 'COMISSAO_PERIODO'
        DataType = ftString
        NumericScale = 255
        Precision = 255
        Size = 5
        Value = 'MAR06'
      end>
    Prepared = True
    SQL.Strings = (
      
        'SELECT MEDIA*GUIAS AS VALGUIAS, FC.*,  C.COMISSAO_NDEPOSITAR, C.' +
        'COMISSAO_AJUSTES, '
      
        'C.COMISSAO_GARANTIA, C.COMISSAO_ISS, A.CARTA_DATAINI, A.CARTA_DA' +
        'TAFIM, '
      
        'CARTA_GERACAO, CARTA_CREDITO, ISNULL(CARTA_OBS,'#39#39') as CARTA_OBS,' +
        ' CARTA_PAGO, '
      
        'CAST((CLARO10*10+CLARO15*15+CLARO20*20+CLARO30*30+CLARO50*50) AS' +
        ' MONEY) AS CLARO,'
      
        'CAST((OI05*5+OI10*10+OI15*15+OI20*20+OI25*25+OI50*50) AS MONEY) ' +
        'AS OI,'
      
        'CAST((TIM15*15+TIM20*20+TIM25*25+TIM35*35+TIM50*50) AS MONEY) AS' +
        ' TIM, '
      
        'CAST((EMBLDR10*10+EMBLDR15*15+EMBLDR20*20+EMBLDR30*30+EMBLDR45*4' +
        '5+EMBLDR90*90) AS MONEY) AS EMBLDR,'
      
        'CAST((EMBLIVRE07*7+EMBLIVRE15*15+EMBLIVRE21*21+EMBLIVRE50*50+EMB' +
        'LIVRE55*55+EMBLIVRE70*70+EMBLIVRE75*75+EMBLIVRE90*90) AS MONEY) ' +
        'AS EMBLIVRE, FC.VALEGAS'
      
        'FROM CARTA A INNER JOIN COMISSAO C ON (C.COMISSAO_PERIODO=A.COMI' +
        'SSAO_PERIODO)'
      'INNER JOIN FRANCOMISSAO FC ON (FC.GRUPO_CODIGO=C.GRUPO_CODIGO)'
      'AND (FC.COMISSAO_PERIODO=C.COMISSAO_PERIODO)'
      'WHERE (FC.GRUPO_CODIGO=:GRUPO_CODIGO)'
      'AND (FC.COMISSAO_PERIODO=:COMISSAO_PERIODO)'
      'ORDER BY FC.GRUPO_CODIGO, FC.FRANQUIA_CODIGO')
    Left = 356
    Top = 326
    object StringField3: TStringField
      FieldKind = fkCalculated
      FieldName = 'Impressao'
      Size = 50
      Calculated = True
    end
    object qryPostosVALGUIAS: TBCDField
      FieldName = 'VALGUIAS'
      ReadOnly = True
      currency = True
      Precision = 30
      Size = 19
    end
    object qryPostosGRUPO_CODIGO: TIntegerField
      FieldName = 'GRUPO_CODIGO'
    end
    object qryPostosCOMISSAO_PERIODO: TStringField
      FieldName = 'COMISSAO_PERIODO'
      FixedChar = True
      Size = 5
    end
    object qryPostosFRANQUIA_CODIGO: TIntegerField
      FieldName = 'FRANQUIA_CODIGO'
    end
    object qryPostosCLARO15: TIntegerField
      FieldName = 'CLARO15'
      DisplayFormat = '###,###,###'
    end
    object qryPostosCLARO20: TIntegerField
      FieldName = 'CLARO20'
      DisplayFormat = '###,###,###'
    end
    object qryPostosCLARO30: TIntegerField
      FieldName = 'CLARO30'
      DisplayFormat = '###,###,###'
    end
    object qryPostosCLARO50: TIntegerField
      FieldName = 'CLARO50'
      DisplayFormat = '###,###,###'
    end
    object qryPostosOI05: TIntegerField
      FieldName = 'OI05'
      DisplayFormat = '###,###,###'
    end
    object qryPostosOI10: TIntegerField
      FieldName = 'OI10'
      DisplayFormat = '###,###,###'
    end
    object qryPostosOI15: TIntegerField
      FieldName = 'OI15'
      DisplayFormat = '###,###,###'
    end
    object qryPostosOI20: TIntegerField
      FieldName = 'OI20'
      DisplayFormat = '###,###,###'
    end
    object qryPostosOI25: TIntegerField
      FieldName = 'OI25'
      DisplayFormat = '###,###,###'
    end
    object qryPostosOI50: TIntegerField
      FieldName = 'OI50'
      DisplayFormat = '###,###,###'
    end
    object qryPostosTIM15: TIntegerField
      FieldName = 'TIM15'
      DisplayFormat = '###,###,###'
    end
    object qryPostosTIM20: TIntegerField
      FieldName = 'TIM20'
      DisplayFormat = '###,###,###'
    end
    object qryPostosTIM25: TIntegerField
      FieldName = 'TIM25'
      DisplayFormat = '###,###,###'
    end
    object qryPostosTIM35: TIntegerField
      FieldName = 'TIM35'
      DisplayFormat = '###,###,###'
    end
    object qryPostosTIM50: TIntegerField
      FieldName = 'TIM50'
      DisplayFormat = '###,###,###'
    end
    object qryPostosGUIAS: TIntegerField
      FieldName = 'GUIAS'
      DisplayFormat = '###,###,###'
    end
    object qryPostosMEDIA: TBCDField
      FieldName = 'MEDIA'
      currency = True
      Precision = 19
      Size = 19
    end
    object qryPostosEMBLDR10: TIntegerField
      FieldName = 'EMBLDR10'
      DisplayFormat = '###,###,###'
    end
    object qryPostosEMBLDR15: TIntegerField
      FieldName = 'EMBLDR15'
      DisplayFormat = '###,###,###'
    end
    object qryPostosEMBLDR30: TIntegerField
      FieldName = 'EMBLDR30'
      DisplayFormat = '###,###,###'
    end
    object qryPostosEMBLDR45: TIntegerField
      FieldName = 'EMBLDR45'
      DisplayFormat = '###,###,###'
    end
    object qryPostosEMBLDR90: TIntegerField
      FieldName = 'EMBLDR90'
      DisplayFormat = '###,###,###'
    end
    object qryPostosEMBLIVRE07: TIntegerField
      FieldName = 'EMBLIVRE07'
      DisplayFormat = '###,###,###'
    end
    object qryPostosEMBLIVRE15: TIntegerField
      FieldName = 'EMBLIVRE15'
      DisplayFormat = '###,###,###'
    end
    object qryPostosEMBLIVRE21: TIntegerField
      FieldName = 'EMBLIVRE21'
      DisplayFormat = '###,###,###'
    end
    object qryPostosEMBLIVRE50: TIntegerField
      FieldName = 'EMBLIVRE50'
      DisplayFormat = '###,###,###'
    end
    object qryPostosEMBLIVRE70: TIntegerField
      FieldName = 'EMBLIVRE70'
      DisplayFormat = '###,###,###'
    end
    object qryPostosEMBLIVRE90: TIntegerField
      FieldName = 'EMBLIVRE90'
      DisplayFormat = '###,###,###'
    end
    object qryPostosCARTA_DATAINI: TDateTimeField
      FieldName = 'CARTA_DATAINI'
    end
    object qryPostosCARTA_DATAFIM: TDateTimeField
      FieldName = 'CARTA_DATAFIM'
    end
    object qryPostosCARTA_GERACAO: TDateTimeField
      FieldName = 'CARTA_GERACAO'
    end
    object qryPostosCARTA_CREDITO: TDateTimeField
      FieldName = 'CARTA_CREDITO'
    end
    object qryPostosCARTA_OBS: TMemoField
      FieldName = 'CARTA_OBS'
      BlobType = ftMemo
    end
    object qryPostosCLARO: TBCDField
      FieldName = 'CLARO'
      ReadOnly = True
      currency = True
      Precision = 19
    end
    object qryPostosOI: TBCDField
      FieldName = 'OI'
      ReadOnly = True
      currency = True
      Precision = 19
    end
    object qryPostosTIM: TBCDField
      FieldName = 'TIM'
      ReadOnly = True
      currency = True
      Precision = 19
    end
    object qryPostosCOMISSAO_NDEPOSITAR: TStringField
      FieldName = 'COMISSAO_NDEPOSITAR'
      FixedChar = True
      Size = 1
    end
    object qryPostosCOMISSAO_AJUSTES: TBCDField
      FieldName = 'COMISSAO_AJUSTES'
      Precision = 19
    end
    object qryPostosCOMISSAO_GARANTIA: TBCDField
      FieldName = 'COMISSAO_GARANTIA'
      Precision = 19
    end
    object qryPostosCOMISSAO_ISS: TBCDField
      FieldName = 'COMISSAO_ISS'
      Precision = 19
    end
    object qryPostosEMBLDR: TBCDField
      FieldName = 'EMBLDR'
      ReadOnly = True
      currency = True
      Precision = 19
    end
    object qryPostosEMBLIVRE: TBCDField
      FieldName = 'EMBLIVRE'
      ReadOnly = True
      currency = True
      Precision = 19
    end
    object qryPostosEMBLDR20: TIntegerField
      FieldName = 'EMBLDR20'
    end
    object qryPostosCLARO10: TIntegerField
      FieldName = 'CLARO10'
    end
    object qryPostosEMBLIVRE55: TIntegerField
      FieldName = 'EMBLIVRE55'
    end
    object qryPostosEMBLIVRE75: TIntegerField
      FieldName = 'EMBLIVRE75'
    end
    object qryPostosVALEGAS: TBCDField
      FieldName = 'VALEGAS'
      currency = True
      Precision = 19
    end
  end
  object dsPostos: TDataSource
    DataSet = qryPostos
    Left = 354
    Top = 311
  end
  object RLRichFilter1: TRLRichFilter
    DisplayName = 'Formato RichText'
    Left = 688
    Top = 78
  end
end
